package com.worldcup.model.dto.question;

import com.worldcup.model.User;
import com.worldcup.model.question.QuestionMatchResult;
import lombok.Data;

/**
 * @author duwan.zq
 * @date 2019/04/27
 */
@Data
public class MatchResultFriendRankDTO {

    private String friendOpenid;

    private String friendName;

    private String friendImgUrl;

    private Integer matchType;

    private String matchTypeName;

    private Double matchDegree;

    public MatchResultFriendRankDTO(QuestionMatchResult matchResult, User friend) {
        this.friendOpenid = friend.getOpenid();
        this.friendName = friend.getName();
        this.friendImgUrl = friend.getImgurl();
        this.matchType = matchResult.getMatchType();
    }
}
